home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / gnu / amiga / sipp.lha / sipp / include / sipp_bitmap.h < prev    next >
C/C++ Source or Header  |  1993-03-13  |  1KB  |  48 lines

  1. /**
  2.  ** sipp - SImple Polygon Processor
  3.  **
  4.  **  A general 3d graphic package
  5.  **
  6.  **  Copyright Equivalent Software HB  1992
  7.  **
  8.  ** This program is free software; you can redistribute it and/or modify
  9.  ** it under the terms of the GNU General Public License as published by
  10.  ** the Free Software Foundation; either version 1, or any later version.
  11.  ** This program is distributed in the hope that it will be useful,
  12.  ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  ** GNU General Public License for more details.
  15.  ** You can receive a copy of the GNU General Public License from the
  16.  ** Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  **/
  18.  
  19. /**
  20.  ** sipp_bitmap.h - Interface to sipp_bitmap.c
  21.  **/
  22.  
  23. #ifndef BITMAP_H
  24. #define BITMAP_H
  25.  
  26. #include <sys/types.h>
  27.  
  28. /* The generic line drawer usable for any bitmap type. */
  29. typedef void   (*Bitmap_line_func)();
  30.  
  31.  
  32. /* The SIPP bitmap and its associated functions. */
  33.  
  34. typedef struct{
  35.     int       width;
  36.     int       height;
  37.     int       width_bytes;
  38.     u_char   *buffer;
  39. } Sipp_bitmap;
  40.  
  41.  
  42. extern Sipp_bitmap   *sipp_bitmap_create();
  43. extern void           sipp_bitmap_destruct();
  44. extern void           sipp_bitmap_line();
  45. extern void           sipp_bitmap_write();
  46.  
  47. #endif /* BITMAP_H */
  48.